home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / edit / e4dv200.zip / E4KEYS < prev    next >
Text File  |  1993-06-16  |  5KB  |  154 lines

  1. ;****************************************************************
  2. ; This is an example key file for E4
  3. ; (C) Copyright 1991-1993 N.Faulks. All Rights Reserved.
  4. ;****************************************************************
  5. ; THIS FILE IS OPTIONAL - IT IS NOT REQUIRED TO USE E4
  6. ;****************************************************************
  7.  
  8. ; This file is read during start-up by E4. It allows you to change
  9. ; the keyboard layout, by making a given key act like one or more
  10. ; other keys. You only need key assignments for those keys that 
  11. ; you wish to change.
  12.  
  13. ; A key assignment contains the key name in the first column, followed by 
  14. ; a TAB and then a list of the key strokes to be assigned to the key.
  15.  
  16. ; Comments start with a semicolon.
  17.  
  18. ; To find out the name of a key use the Tools Keycodes command
  19.  
  20. ;************************
  21. ; Function key shortcuts
  22. ;************************
  23.  
  24. ; These allow quick shortcuts for useful key sequences. These are my
  25. ; personal favourites, so feel free to change them
  26.  
  27. ; F2 gives a buffer list
  28.  
  29. F2    @B @L
  30.  
  31. ; Strings may be include in key assignments
  32.  
  33. F9    "E4 Editor "
  34.  
  35.  
  36. ; F11 goes to the point where you last changed something. Press 
  37. ; repeatedly to view the last few edits (for the current edit 
  38. ; session only).
  39.  
  40. F11    @G @E
  41.  
  42. ; F12 switches to the previous buffer
  43.  
  44. F12    @G @P
  45.  
  46. ; It is possible to redefine keys so as to provide your own 
  47. ; defaults for certain commands  Here I am redefining the Dos 
  48. ; command so that the Allsave option is always set
  49. ; (If you want this then remove the semicolon and the space 
  50. ; following it)
  51.  
  52. ; @d    @d @plus @a
  53.  
  54. ;************************
  55. ; Specials for the GRiD
  56. ;************************
  57.  
  58. ; My Grid portable doesn't have a numeric key pad so I reassign
  59. ; Alt-PageDown to have the same effect as Grey Plus
  60.  
  61. @pgdn    #plus
  62. @pgup    #minus
  63.  
  64. ;************************
  65. ; Non-enhanced keyboards
  66. ;************************
  67.  
  68. ; Standard PC keyboards (No F11 & F12) cannot generate some keys 
  69.  
  70. ; Here I make ^del (delete to end of line) into ALT-K for Kill
  71.  
  72. @K    ^del
  73.  
  74. ; Make ALT-E act as the Explode key (ALT-;)
  75.  
  76. @E    @semi
  77.  
  78. ;************************
  79. ; For Programmers
  80. ;************************
  81.  
  82. ; These Assigments allow easy compilation and testing of programs from 
  83. ; within the editor. The registered version of the editor comes with a 
  84. ; library of macros which apply to other languages and also allow you to 
  85. ; track error messages (putting the cursor over the offending line in your 
  86. ; program)
  87.  
  88. ; Use ALT-Z (Zip command) to view the output of compiler or your program.
  89.  
  90. ; ^HOME is used to reset all the current options (for the Dos command). 
  91. ; @A then turns on Autosave, and @U turns on Unloadall. These make sure 
  92. ; that all your files are saved, and then unloaded from memory to make room 
  93. ; for the compiler. F4 is replaced by the full pathname of the file. ESC 
  94. ; is used to return from the DOS screen. Use ALT-Z to view errors, etc.
  95.  
  96. ; COMPILE using the supplied COMPILE program. Edit the file COMPILE.CL 
  97. ; to configure for different compilers or assemblers
  98.  
  99. ^C    @D ^HOME @A @U "compile " F4 RET
  100.  
  101. ; EXECUTE the .EXE file produced by compiling the current buffer
  102.  
  103. ^X    @D @F4 RET
  104.  
  105. ; DEBUG using the Turbo Debugger on the file. Change the string TD to 
  106. ; suit your own requirements
  107.  
  108. ^Z    @D "TD " @F4 RET ESC
  109.  
  110. ; The following macros assume that you are using the editor's project 
  111. ; file facility. This allows the name of the current project (the name of 
  112. ; the file you are trying to build) to be passed to the MAKE program 
  113. ; (normally supplied with your compiler), the debugger, or run directly.
  114.  
  115. ; Compile using the project file name as a target to make
  116.  
  117. ^M    @d ^home @a @u "make " f9 RET
  118.  
  119. ; Run the project
  120.  
  121. ^R    @d ^home @a @u f9 RET
  122.  
  123. ; Test using the Turbo Debugger
  124.  
  125. ^T    @d ^home @a @u "td " f9 RET ESC
  126.  
  127. ; Sample Language Specific Assignments
  128.  
  129. ; Comment out a C program line (this is best as a macro so that you can
  130. ; have different comment styles for different languages). The ^U macro 
  131. ; un-comments a line commented by ^K.
  132.  
  133. ^k    home "/* " end " */" down home
  134. ^u    home del del del end bksp bksp bksp down home
  135.  
  136. ; This macro adds the current line to a list of function protoypes kept 
  137. ; at the start of the file. The supplied TEMPLATE.C file includes the 
  138. ; C comments necessary to make this work. To use this macro place the 
  139. ; cursor over a function header and press ^P.
  140.  
  141. ^p    esc @c esc @f ^home @g @c "end of proto" ret
  142.     up home @v end semi @g @f
  143.  
  144.  
  145. ; For E4 Deluxe Only. The menu keyword must be assigned to a key before
  146. ; E4-Deluxe will display a menu bar.
  147.  
  148. [Menus]
  149.  
  150. F10    menu
  151.  
  152. msg=Press F1 for HELP, F10 for Menus. ALT-Letter for Commands.
  153.  
  154.